<style type="text/css">
    .sam_line {
        overflow: hidden;
        padding: 10px 5px;
    }
    .sam_line .sam_right {
        width: 50%;
        float: left;
    }
    .sam_line .sam_left{
        float: left;
    }
    .sam_line .sam_left .layui-form-item{
        margin-bottom:0px;
    }
    .sam_line .sam_font{
        color: #929191;
    }
    .sam_line .sam_font_red{
        color: #c91919;
    }
    .sam_line .left30{
        padding-left: 30px;
    }
</style>
<form class="layui-form" action="{:url()}" method="post" id="editForm">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="clear:both;">
        <ul class="layui-tab-title" id="vue_tab_content">
            <li class="layui-this"><a href="#">设置计算方式</a></li>
            <li><a href="#">设置工价判断值</a></li>
        </ul>
        <div class="layui-tab-content layui-form">
            <div class="layui-tab-item layui-show">
                <div style="padding-left: 50px;">设置盈亏计算方式</div>
                <div style="padding-top: 20px;">
                    <div class="layui-form-item">
                        <div class="layui-input-block" style="float: left; margin-left: 45px;">
                            <input type="checkbox" name="num_type" value="1" lay-skin="switch" {if  $num_type == 1 }checked{/if}>
                        </div>
                        <label style="width: 200px; text-align: left;" class="layui-form-label">使用 “裁床件数” 计算盈亏</label>
                    </div>   
                </div>
                <div>
                    <div class="layui-form-item">
                        <div class="layui-input-block" style="float: left; margin-left: 45px;">
                            <input type="checkbox" name="num_type" value="2" lay-skin="switch" {if $num_type == 2 }checked{/if}>
                        </div>
                        <label style="width: 200px; text-align: left;" class="layui-form-label">使用 “MES入仓数” 计算盈亏</label>
                    </div>
                </div>
            </div>
            <div class="layui-tab-item">
                <div class="sam_line">
                    <div class="sam_right">
                        <div class="sam_font_red">设置工价盈亏判断值</div>
                        <div class="left30" style="padding-top: 15px;">
                            <div class="sam_font">客户加工费VS实际加工费</div>
                            <div class="layui-input-inline ">
                                <input type="text" class="required layui-input field-client_ordernum" name="process_cost" value="{$process_cost}" autocomplete="off" placeholder="输入百分比如: 50%" lay-verify="required|number">
                            </div>
                        </div>
                    </div>
                    <div class="sam_left">
                        <div>
                            <div class="layui-form-item">
                                <div class="layui-input-block" style="float: left;">
                                    <input type="checkbox" name="process_status" value="1" lay-skin="switch" {if $process_status == 1}checked{/if}>
                                </div>
                                <label class="layui-form-label" style="width: 150px; text-align: left;">关闭后，不加入判断</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="pop-bottom-bar">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">确认</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>


{include file="system@block/layui" /}
<script>
    layui.use(['element','layer','laytpl','form'],function() {
        var element = layui.element;
        element.on('tab(docDemoTabBrief)',function(data){
             
        });
    });
</script>